package com.venueproject.service;

import com.venueproject.pojo.Appoiment;
import com.venueproject.pojo.PageBean;

import java.util.List;

public interface AppoimentService {
    /**
     * 预约场地查询
     * @param page
     * @param pageSize
     * @param number
     * @param name
     * @return
     */
    PageBean page(Integer page, Integer pageSize, String number, String name);

    /**
     * 预约信息查询
     * @return
     */
    List<Appoiment> getAppoiment();

    /**
     * 判断场地当日是否预约
     * @return
     */
    Appoiment selectAppoiment(String number);

    /**
     * 插入预约信息
     */
    void insertAppoiment(Appoiment appoiment);


    /**
     * 预约人数加1
     * @param id
     */
    void Addappoiment(int id);
}
